package com.tangly.module.service.impl;

import com.github.pagehelper.PageInfo;
import com.tangly.common.base.BaseServiceImpl;
import com.tangly.module.entity.LoanRateEntity;
import com.tangly.module.mapper.LoanRateMapper;
import com.tangly.module.service.ILoanRateService;
import com.tangly.module.vo.SearchRequestVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

/**
 * created by yehao on 2018/7/27.
 */
@Service
@Slf4j
@CacheConfig(cacheNames = {"rate"})
public class LoanRateServiceImpl extends BaseServiceImpl<LoanRateEntity> implements ILoanRateService {

    @Autowired
    private LoanRateMapper mapper;

    @Override
    public LoanRateEntity insert(LoanRateEntity loanRateEntity) {
        return super.insert(loanRateEntity);
    }

    @Override
    public LoanRateEntity insertSelective(LoanRateEntity loanRateEntity) {
        return super.insertSelective(loanRateEntity);
    }

    @Override
    public int insertList(List<LoanRateEntity> t) {
        return super.insertList(t);
    }

    @Override
    public int deleteByPrimaryKey(Object key) {
        return super.deleteByPrimaryKey(key);
    }

    @Override
    public int delete(LoanRateEntity loanRateEntity) {
        return super.delete(loanRateEntity);
    }

    @Override
    public int updateByPrimaryKey(LoanRateEntity loanRateEntity) {
        return super.updateByPrimaryKey(loanRateEntity);
    }

    @Override
    public int updateByPrimaryKeySelective(LoanRateEntity loanRateEntity) {
        return super.updateByPrimaryKeySelective(loanRateEntity);
    }

    @Override
    public LoanRateEntity selectByPrimaryKey(Object key) {
        return super.selectByPrimaryKey(key);
    }

    @Override
    public LoanRateEntity selectOne(LoanRateEntity loanRateEntity) {
        return super.selectOne(loanRateEntity);
    }

    @Override
    public int selectCount(LoanRateEntity loanRateEntity) {
        return super.selectCount(loanRateEntity);
    }

    @Override
    public List<LoanRateEntity> selectAll() {
        return super.selectAll();
    }

    @Override
    public PageInfo<LoanRateEntity> selectAndByPage(SearchRequestVO searchRequestVO, Class clazz) {
        return super.selectAndByPage(searchRequestVO, clazz);
    }

    @Override
    public PageInfo<LoanRateEntity> selectOrByPage(SearchRequestVO searchRequestVO, Class clazz) {
        return super.selectOrByPage(searchRequestVO, clazz);
    }

    @Override
    public List<LoanRateEntity> select(LoanRateEntity loanRateEntity) {
        return super.select(loanRateEntity);
    }

    @Override
    public List<LoanRateEntity> selectByExample(Example e) {
        return super.selectByExample(e);
    }

    @Override
    public int deleteByIds(String ids) {
        return super.deleteByIds(ids);
    }
}
